/*
 * @Author: xiaosihan
 * @Date: 2021-03-28 02:13:06
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2024-05-27 14:13:33
 */

import { get, isEmpty, isEqual, pick } from "lodash";
import { Clock, Event, EventDispatcher } from "three";

// 全局公共方法
class Utils extends EventDispatcher {
    constructor() {
        super();
    }
    isProd = import.meta.env.MODE as string === "production";

    isDev = import.meta.env.MODE as string === "development";
    
    // 取随机数在某个范围里
    rand(start: number, end: number) {
        return Math.floor(Math.random() * (end - start + 1) + start);
    }

}

const utils = new Utils();

export default utils;